import React, { Component } from 'react';
import { NowDesc,SoonDesc } from './'

export default class Item extends Component {
  static propTypes = {};

  render() {
    let { item,type } = this.props;
    return (
      <li className="home-item item mg-t-15 bg-fff">
        <img
          className="w100pc"
          src={item.cover.origin}
          alt="图片"
        />
       {
         type==='now'?<NowDesc item={item}/>:<SoonDesc  item={item}/>
       }
      </li>
    );
  }
}
